import request from "./request"

// 请求送货单数据
export const GetOrderDataAll = (params) => request.get("/order/v1/list", { params })

// 请求送货单待发货数据
export const GetOrderDeliveredData = (params) => request.get("order/v1/list/1", { params })

// 请求送货单待收获数据
export const GetOrderReceivingData = (params) => request.get("order/v1/list/2", { params })

// 请求送货单待评价数据
export const GetOrderEvaluateData = (params) => request.get("order/v1/list/3", { params })

// 发货请求
export const DeliverGoods = (params) => request.post("order/v1/send", params)

// 确认发货
export const ConfirmDelivery = (params) => request.post(`order/v1/confirmReceipt/${params}`)

// 请求消息中心数据
export const GetmessageAllData = (params) => request.get("api/message", { params })

// 请求消息详情页数据
export const GetmessageDetailsData = (params) => request.get(`api/message/${params}`, { params })

// 登录请求
export const ChangeLogin = (params) => request.post("login", params)


// 请求个人中心数据
export const GetUserListData = (params) => request.get("users/list", { params })


// 请求快递单数据
export const GetStarListData = (params) => request.get("api/star", { params })

// 请求评价详情数据
export const GetEvaluationData = (params) => request.get(`api/star/${params}`)

// 物流单评价
export const Star = (params) => request.put("api/star", params)


// 我的客户列表数据
export const GetCustListData = (params) => request.get("api/cust", { params })


// 客户详情视图
export const GetCustIncomeData = (params) => request.post(`api/cust/${params}`)
// 客户基本信息
export const GetCustData = (params) => request.get(`api/cust/${params}`)

// 修改客户基本信息
export const CustEdit = (params) => request.put("api/cust", params)

// 获取拜访记录
export const GetVisitListData = (params) => request.get("api/visit", { params })

// 新增拜访记录
export const NewAddVisitData = (params) => request.post("api/visit", params)

// 走访信息详情
export const GetCustVisitData = (params) => request.get(`api/visit/${params}`)

